<extend name="Base/common"/>

<block name="body">

<title>登录</title>

	<body style="background:#4ea3fd;">

		<!--登录-->

		<div id="login" style="height:100%;position: relative;">

			<form action="{:U('UserMember/login')}" class="form-horizontal form"  method="post" style="position:absolute;top:50%;margin-top:-500px;">

				<div class="number">

					<label><img src="__IMG__/images/login_03.png"/></label>

					<input type="text" name="mobile" id="number" placeholder="请输入手机号" maxlength="11" <notempty name="user.username">value="{$user.username}"</notempty> />

				</div>

				<div class="password">

					<label><img src="__IMG__/images/login1_07.png"/></label>

					<input type="password" id="password" name="password" placeholder="请输入登录密码" <notempty name="user.password">value="{$user.password}"</notempty> />

				</div>

				<p style="font-size: 20px;font-weight: 600;color:white;padding-left: 75px;">

					<input style="width:20px;height:20px;" type="checkbox" name="remember" value="1"<notempty name="user.remember">checked="checked"</notempty> />&nbsp;<span class="remember" style="font-size:25px;">记住登录状态</span>

				</p>				

				<input type="submit" class="aaaa ajax-post" target-form="form-horizontal" name="buto" id="btn" value="登录" />

				<input type="hidden" name="check" value="1" />

			</form>

			<p class="zhuc" style="position: absolute;top: 50%;margin-top: 170px;">

				<a href="{:U('UserMember/forgetPwd')}"　class="f-fl">忘记密码？</a>

				<a href="{:U('UserMember/register')}" class="f-fr">新用户注册</a>

			</p>

		</div>

<script>

	$(function(){

		//点选记住密码框

		$('.remember').click(function(){

			var obj = $(this).prev('input');

			if (obj.is(':checked')) {

				obj.prop('checked',false);

			} else {

				obj.prop('checked',true);

			}

		});


		// $('.aaaa').click(function(){
		// 	var value = $('#number').val();
		// 	if(value == ""){
		// 		layer.alert("没有手机号不能提交");
		// 		 $(":text[id=number]").focus();    
  //          		check.preventDefault();//此处阻止提交表单  
		// 	}
		// });
		//后台判断用

		$('#password').change(function(){

			$('input[name=check]').remove();

		});

	})

</script>

</block>